package com.fashiontextile.auth.service;

import com.fashiontextile.common.entity.LoginUser;
import com.fashiontextile.user.entity.User;
import com.nimbusds.jose.JOSEException;

import java.text.ParseException;
import java.util.Map;

/**
 * token服务
 * @author brooke_zb
 */
public interface TokenService {
    Map<String, Object> createToken(User user) throws JOSEException;
    void deleteToken(String jwt) throws JOSEException, ParseException;
    LoginUser getLoginUser(String jwt) throws ParseException, JOSEException;
}
